<div id="Main_Table">
	<table id="TopTable" cellpadding="0" cellspacing="0" ><tr><td class="bleft"></td><td class="bmid"><div><span class="butt01l"></span><span class="butt01m"><%= link_to 'Create a new wheel', :action => 'new' %></span><span class="butt01r"></span></div></td><td class="bright"></td></tr></table><!-- /TopTable -->

	<table id="HeaderTable" cellpadding="0" cellspacing="0" >
		<tr>
			<td class="bleft">Wheel Name</td>
			<td class="bright">Actions</td>
		</tr>
	</table><!-- /HeaderTable -->

	<table id="ItemsTable" cellpadding="0" cellspacing="0" >
		<% @wheels.each_with_index do |wheel, i| %>
			<tr class="<%= i % 2 == 0 ? "one" : "two" %>">
	    		<td class="n"><%= link_to wheel.name, :action => :show, :id => wheel.id %></td>
				<td class="i"><%= link_to '<span class="i_view"></span>'.html_safe, :action => :draw_preview, :id => wheel.id %></td>
			    <td class="i"><%= link_to '<span class="i_edit"></span>'.html_safe, :action => :edit, :id => wheel.id %></td>
			    <td class="i"><%= link_to '<span class="i_download"></span>'.html_safe, :action => :draw, :id => wheel.id %></td>
			    <td class="i"><%= link_to '<span class="i_delete"></span>'.html_safe, {:action => :delete, :id => wheel.id}, :confirm => "Are you sure you want to delete the wheel #{wheel.name}?" %></td>
			    <td class="i"><%= link_to '<span class="i_records"></span>'.html_safe, {:controller => :wheel_record, :action => :index, :id => wheel.id} %></td>
		    </tr>
		<% end %>
    </table><!-- /ItemsTable -->

	<table id="BotTable" cellpadding="0" cellspacing="0">
		<tr><td class="bleft"></td><td class="bmid">&nbsp;</td><td class="bright"></td></tr>
	</table><!-- /TopTable -->
</div><!-- /Main_Table -->
